package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * SPU对象 tb_spu
 * 
 * @author ruoyi
 * @date 2022-06-01
 */
public class TbSpu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 货号 */
    @Excel(name = "货号")
    private String sn;

    /** SPU名 */
    @Excel(name = "SPU名")
    private String name;

    /** 副标题 */
    @Excel(name = "副标题")
    private String caption;

    /** 品牌ID */
    @Excel(name = "品牌ID")
    private Integer brandId;

    /** 一级分类 */
    @Excel(name = "一级分类")
    private Integer category1Id;

    /** 二级分类 */
    @Excel(name = "二级分类")
    private Integer category2Id;

    /** 三级分类 */
    @Excel(name = "三级分类")
    private Integer category3Id;

    /** 模板ID */
    @Excel(name = "模板ID")
    private Integer templateId;

    /** 运费模板id */
    private Integer freightId;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 图片列表 */
    @Excel(name = "图片列表")
    private String images;

    /** 售后服务 */
    @Excel(name = "售后服务")
    private String saleService;

    /** 介绍 */
    @Excel(name = "介绍")
    private String introduction;

    /** 规格列表 */
    @Excel(name = "规格列表")
    private String specItems;

    /** 参数列表 */
    @Excel(name = "参数列表")
    private String paraItems;

    /** 销量 */
    @Excel(name = "销量")
    private Integer saleNum;

    /** 评论数 */
    @Excel(name = "评论数")
    private Integer commentNum;

    /** 是否上架 */
    @Excel(name = "是否上架")
    private Integer isMarketable;

    /** 是否启用规格 */
    @Excel(name = "是否启用规格")
    private Integer isEnableSpec;

    /** 是否删除 */
    private Integer isDelete;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Integer status;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setSn(String sn) 
    {
        this.sn = sn;
    }

    public String getSn() 
    {
        return sn;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCaption(String caption) 
    {
        this.caption = caption;
    }

    public String getCaption() 
    {
        return caption;
    }
    public void setBrandId(Integer brandId) 
    {
        this.brandId = brandId;
    }

    public Integer getBrandId() 
    {
        return brandId;
    }
    public void setCategory1Id(Integer category1Id) 
    {
        this.category1Id = category1Id;
    }

    public Integer getCategory1Id() 
    {
        return category1Id;
    }
    public void setCategory2Id(Integer category2Id) 
    {
        this.category2Id = category2Id;
    }

    public Integer getCategory2Id() 
    {
        return category2Id;
    }
    public void setCategory3Id(Integer category3Id) 
    {
        this.category3Id = category3Id;
    }

    public Integer getCategory3Id() 
    {
        return category3Id;
    }
    public void setTemplateId(Integer templateId) 
    {
        this.templateId = templateId;
    }

    public Integer getTemplateId() 
    {
        return templateId;
    }
    public void setFreightId(Integer freightId) 
    {
        this.freightId = freightId;
    }

    public Integer getFreightId() 
    {
        return freightId;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }
    public void setSaleService(String saleService) 
    {
        this.saleService = saleService;
    }

    public String getSaleService() 
    {
        return saleService;
    }
    public void setIntroduction(String introduction) 
    {
        this.introduction = introduction;
    }

    public String getIntroduction() 
    {
        return introduction;
    }
    public void setSpecItems(String specItems) 
    {
        this.specItems = specItems;
    }

    public String getSpecItems() 
    {
        return specItems;
    }
    public void setParaItems(String paraItems) 
    {
        this.paraItems = paraItems;
    }

    public String getParaItems() 
    {
        return paraItems;
    }
    public void setSaleNum(Integer saleNum) 
    {
        this.saleNum = saleNum;
    }

    public Integer getSaleNum() 
    {
        return saleNum;
    }
    public void setCommentNum(Integer commentNum) 
    {
        this.commentNum = commentNum;
    }

    public Integer getCommentNum() 
    {
        return commentNum;
    }
    public void setIsMarketable(Integer isMarketable) 
    {
        this.isMarketable = isMarketable;
    }

    public Integer getIsMarketable() 
    {
        return isMarketable;
    }
    public void setIsEnableSpec(Integer isEnableSpec) 
    {
        this.isEnableSpec = isEnableSpec;
    }

    public Integer getIsEnableSpec() 
    {
        return isEnableSpec;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sn", getSn())
            .append("name", getName())
            .append("caption", getCaption())
            .append("brandId", getBrandId())
            .append("category1Id", getCategory1Id())
            .append("category2Id", getCategory2Id())
            .append("category3Id", getCategory3Id())
            .append("templateId", getTemplateId())
            .append("freightId", getFreightId())
            .append("image", getImage())
            .append("images", getImages())
            .append("saleService", getSaleService())
            .append("introduction", getIntroduction())
            .append("specItems", getSpecItems())
            .append("paraItems", getParaItems())
            .append("saleNum", getSaleNum())
            .append("commentNum", getCommentNum())
            .append("isMarketable", getIsMarketable())
            .append("isEnableSpec", getIsEnableSpec())
            .append("isDelete", getIsDelete())
            .append("status", getStatus())
            .toString();
    }
}
